package com.example.demo01.Service.webService;

import com.example.demo01.Dao.webDao.HealthInfoRecordDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class HealthInfoRecordService {
    @Autowired
    private HealthInfoRecordDao healthInfoRecordDao;

    /**
     * 获取所有健康信息记录
     * */
    public List<Map<String, Object>> getAllHealthRecords(){
       return   healthInfoRecordDao.getAllHealthRecords();
    }

    /**
     * 根据身份证号获取健康信息记录
     * */
    public List<Map<String, Object>> getHealthRecordByIdNum(String idNum, int limitCount){return healthInfoRecordDao.getHealthRecordByIdNum(idNum,limitCount);}

    /**
     * 根据身份证号获取单条——统计性健康信息记录
     * */
    public List<List> getHealthRecordByIdNum(String idnum) { return healthInfoRecordDao.getHealthRecordByIdNum(idnum); }
}
